import 'package:reactive_forms/reactive_forms.dart';

class BaseProps<T> {
  String title;

  bool requireStar;

  FormControl<T>? formControl;

  Map<String, String Function(Object)>? validationMessages;

  ControlValueAccessor<T, String>? valueAccessor;

  bool Function(FormControl<T>)? showErrors;

  bool readOnly;

  BaseProps(
      {this.title = '',
      this.requireStar = false,
      this.formControl,
      this.valueAccessor,
      this.showErrors,
      this.validationMessages,
      this.readOnly = false});
}
